package com.zh.common.controller;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zh.common.utils.ShiroUtils;
import com.zh.system.domain.UserDO;
import org.springframework.stereotype.Controller;

import java.util.List;

@Controller
public class BaseController {
    public UserDO getUser() {
        return ShiroUtils.getUser();
    }

    public String getUserId() {
        return getUser().getUserId()+"";
    }

    public String getUsername() {
        return getUser().getUsername();
    }


}